<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="/js/vue.js"></script>
  <style>
    .book-list{
        border: 1px solid;
        padding: 20px;
        display: inline-block;
        background: rgb(56, 131, 216);
        color: #fff;
    }
  </style>
</head>
<body>
  <div id="app">
      <people-list></people-list>

      <!-- <PeopleList></PeopleList> -->

      <book-item 1></book-item 1>

      <book-list></book-list>
  </div>
<br>
  <script type="text/x-template" id="people-list">
   <ul>
    <li>tom</li>
    <li>jerry</li>
    <li>kevin</li>
   </ul>
  </script>
  <script>
    Vue.component('people-list',{
        template:'#people-list'
    })
    Vue.component('BookItem 1',{
        template:'<div> 书名：《西游记》</div>'
    })
    Vue.component('BookItem 1',{
        template:'<div> 书名：《三国演义》</div>'
    })
    Vue.component('BookList',{
        template:`<ul class="book-list">
            <li><BookItem 1></BookItem 1></li>
            <li><BookItem 2></BookItem 2></li>
                </ul>`
    })
    let app = new Vue({
   el:"#app"
    })
  </script>
</body>
</html>